<extend name="Public/Common/base.html" />
<block name="main">
<style>
form{
	font-size:14px;
}
</style>

 <css  href="__PUBLIC__/assets/css/amazeui.chosen.css"/>
 <js href="__PUBLIC__/assets/js/amazeui.chosen.min.js"/> 
 <css  href="__PUBLIC__/assets/css/amazeui.datetimepicker.css"/>
 <js href="__PUBLIC__/assets/js/amazeui.datetimepicker.min.js"/> 

<div class="am-g">
 <form class="am-form"  <notempty name="editlist.id">action="{:U('Admin/Late/updatelate')}"</notempty>  method="post">
  <fieldset>
     
     <div class="am-form-group am-u-sm-4 am-u-end">
      <label for="doc-select-1">迟到人员:</label>   
			<select data-placeholder="请选择请假人员"  multiple name="latename"  id="latename" class="chosen-select " tabindex="11" required >			 
			
			 <volist name="relationlist" id="vo">
			  <optgroup label="{$vo.station}" >	
			      <foreach name="vo" item="v">
				      <foreach name="v" item="vv">
					  <option value="{$vv['id']}" <eq name="vv.name" value="$editlist.latename">selected</eq>>{$vv['name']}</option>
					  </foreach>	
				   </foreach>						 
			 </optgroup>
			 </volist>				
         </select>
         <!-- <input id="staffid" type="hidden" name="staffid" value="">  -->      				       	                 
    </div>
        
   <input id="id" type="hidden" name="id" value=""> 
     <div class="am-form-group am-u-sm-4 am-u-end">
      <label for="doc-select-1">迟到月份:</label>       
	   <select id="latemid"  name="latemid" required>
        <option value="">请选择月份</option>
        <volist name="monthlist" id="vo">  
        <option value="{$vo.id}"  <if condition="$vo.month eq $editlist['latemid']">selected</if>>{$vo.month}月</option>
       </volist>
      </select>
      <span class="am-form-caret"></span>     				       	                 
    </div>
	
    <div class="am-input-group am-u-sm-4 am-u-end" >
	 <label for="latetime">迟到次数:</label>   
	<input  type="text" name="latetime" id="latetime" value="<notempty name="editlist.latetime">{$editlist.latetime}</notempty>" placeholder="请输入次数"  class="am-form-field" required>
	</div>
	<input type="hidden" id="late" name="late" value="{$editlist.latetime}">
		<input type="hidden" id="id" name="id" value="<notempty name="editlist.id">{$editlist.id}</notempty>">
	
<js href="__PUBLIC__/layer/layer.js" />		
<js href="__PUBLIC__/assets/js/app.js"/> 
  </fieldset>
  <notempty name="editlist.id">
   <p>
   <button type="submit" class="am-btn am-btn-sm am-btn-primary am-margin-left-lg">提交</button>
   </p>
  <else/>
   <p>
   <button type="button" onclick="lateee()" class="am-btn am-btn-sm am-btn-primary am-margin-left-lg">提交</button>
   </p>
  </notempty>
  
</form>
</div> 


       
       
</block>
